@import url("https://fonts.googleapis.com/css2?family=Playwrite+IT+Moderna:wght@100..400&family=Rock+Salt&display=swap");

:root {
  /* Colors */
  --color-bg: #f7f1e3;
  --color--primary: #ff6b35;
  --color-primary-light: #ff8c66;
  --color-secondary: #ffb347;
  --color-secondary-light: #ffcc33;
  --color-dark: #333;
  --color-text: #444;
  --color-white: #fff;

  /* Gradients */
  --gradient-primary: linear-gradient(
    45deg,
    var(--color--primary),
    var(--color-primary-light)
  );
  --gradient-secondary: linear-gradient(
    45deg,
    var(--color-secondary),
    var(--color-secondary-light)
  );
  --gradient-heading: linear-gradient(
    45deg,
    var(--color-dark),
    var(--color--primary)
  );
  --gradient-bg: linear-gradient(135deg, var(--color-bg) 0%, #f5e7d3 100%);

  /* Spacing */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 20px;
  --space-xl: 30px;
  --space-xxl: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-btn: 0 8px 20px rgba(255, 107, 53, 0.3);
  --shadow-btn-hover: 0 12px 30px rgba(255, 107, 53, 0.4);

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(40px, 40px) rotate(10deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-120px * 6 - 15px * 5));
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Playwrite IT Moderna", cursive;
}

body {
  background: var(--gradient-bg);
  /* 
    未使用: background-repeat: no-repeat;  
    所以: 整个页面都会有颜色, 默认 repeat 了
  */
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.4;

  /* 右上角的夕阳 */
  &.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite alternate;
  }

  /* body底部100px处的清晨 */
  &.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #88d3ce, #6e45e2);
    bottom: 100px;
    left: -50px;
    animation: float 20s ease-in-out infinite alternate-reverse;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xxl);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

  .logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--color--primary);
    text-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);

    &:hover {
      transform: scale(1.1);
    }

    &::after {
      content: "®";
      position: absolute;
      top: 0;
      right: -12px;
      font-size: 10px;
    }

    i {
      font-size: 2rem;
    }

    span {
      font-family: "Rock Salt", cursive;
    }
  }

  nav ul {
    display: flex;
    list-style: none;

    li {
      margin: 0 var(--space-md);
      position: relative;

      a {
        text-decoration: none;
        color: var(--color-dark);
        font-size: 15px;
        transition: var(--transition-normal);
        padding: var(--space-xs) 0;

        &::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: -10px;
          width: 0%;
          height: 2px;
          background-color: var(--color--primary);
          transition: width var(--transition-normal);
        }

        &:hover {
          color: var(--color--primary);

          &::after {
            width: 100%;
          }
        }
      }
    }
  }

  .auth-buttons {
    display: flex;
    align-items: center;

    .login-btn {
      margin-right: var(--space-md);
      color: var(--color-dark);
      text-decoration: none;
      font-size: 15px;
      font-weight: 300;
      transition: var(--transition-normal);
      font-family: "Rock Salt", cursive;

      &:hover {
        color: var(--color--primary);
      }
    }

    .signup-btn {
      background: var(--gradient-primary);
      color: var(--color-white);
      padding: var(--space-sm) var(--space-xl);
      border-radius: var(--radius-xl);
      text-decoration: none;
      font-size: 15px;
      transition: var(--transition-normal);
      box-shadow: var(--shadow-btn);
      font-family: "Rock Salt", cursive;

      &:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-btn-hover);
      }
    }
  }
}

/* 20:01 */
.hero {
  text-align: center;
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;

  .promo-badge {
    background: var(--gradient-secondary);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    display: inline-block;
    margin-bottom: var(--space-md);
    animation: pulse 2s infinite;
    position: relative;

    &::before {
      content: "🚀";
      margin-right: 8px;
    }
  }

  h1 {
    font-family: "Rock Salt", cursive;
    font-size: 60px;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 30px;
    background: var(--gradient-heading);

    line-height: 1.6;

    background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -10px;
      transform: translateX(-50%);
      width: 100px;
      height: 4px;
      background: var(--gradient-primary);
      border-radius: 2px;
    }
  }

  p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;

    .highlight {
      color: var(--color--primary);
      font-weight: 600;
    }
  }

  /* 26.30 */
  .cta-btn {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-btn);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    font-family: "Rock Salt", cursive;

    &:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-btn-hover);
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
      );
      transition: var(--transition-slow);
    }
  }

  .video-showcase-container {
    width: 100%;
    overflow: hidden;
    position: relative;

    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 0;
      width: 200px;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    &::before {
      left: 0;
      background: linear-gradient(
        90deg,
        rgba(247, 241, 277, 1) 0%,
        rgba(247, 241, 277, 0) 100%
      );
    }
    &::after {
      right: 0;
      background: linear-gradient(
        -90deg,
        rgba(247, 241, 277, 1) 0%,
        rgba(247, 241, 277, 0) 100%
      );
    }

    .video-showcase {
      display: flex;
      gap: 15px;
      width: fit-content;
      animation: scroll 25s linear infinite;
      padding: var(--space-sm) 0;

      &:hover {
        animation-play-state: paused;
      }
    }

    .video-item {
      flex: 0 0 150px;
      height: 250px;
      border-radius: var(--radius-lg);
      overflow: hidden;
      position: relative;
      box-shadow: var(--shadow-lg);
      /* transform: perspective(100px) rotateX(4deg); */
      transition: var(--transition-normal);
      cursor: pointer;

      &:hover {
        transform: perspective(1000px) rotateX(0deg) scale(1.05);
        z-index: 10;

        &::before {
          opacity: 1;
          transform: scale(1.2);
        }

        img {
          transform: scale(1.1);
        }
      }

      &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          0deg,
          rgba(0, 0, 0, 0.7) 0%,
          rgba(0, 0, 0, 0) 50%
        );
      }
      &::before {
        content: "▶";
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        background: var(--color--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--color-white);
        z-index: 2;
        opacity: 0.7;
        transition: var(--transition-normal);
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition-normal);
      }
    }
  }

  .trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xxl);
    flex-wrap: wrap;

    .trust-badge {
      background: rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(5px);
      padding: 8px 15px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      font-size: 13px;
      font-weight: 500;
      color: var(--color-text);

      &::before {
        margin-right: 8px;
        font-size: 18px;
      }

      &.view::before {
        content: "👁️";
      }
      &.rating::before {
        content: "⭐";
      }
      &.security::before {
        content: "🔒";
      }
    }
  }
}

/* 45.13 */
/* Responsiveness */
@media (max-width: 979.9px) {
  header {
    flex-direction: column;
    padding: var(--space-lg);
  }

  nav ul {
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    h1 {
      font-size: 36px;
    }

    .video-item {
      flex: 0 0 100px;
      height: 180px;
    }

    .limited-offer {
      left: 20px;
      right: 20px;
      max-width: none;
    }
  }
}
